<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>admin regist AddQuestion</title>
<link rel="stylesheet" type="text/css" href="/css/global.css" />
</head>
<body>
<form action="${f:url('insertQuestion')}" method="post">
<input type="hidden" ${f:hidden("key")}/>
<input type="hidden" ${f:hidden("version")}/>
ExamName<br />
<textarea name="question" style="width: 500; height: 250" class="${f:errorClass('question', 'error')}"/>${f:h(question)}</textarea>${f:h(errors.question)}<br />

Option<br />
${f:h(errors.correctArray)}<br />
${f:h(errors.option)}<br />
<c:forEach var="e" items="${optionArray}" varStatus="status">
<input type="checkbox" ${f:multibox("correctArray", "${status.count}")}/>
<textarea name="optionArray" style="width: 470; height: 50" />${f:h(e.option)}</textarea><br />
</c:forEach>
<input type="submit" value="Insert"/>
<input type="button" value="Cancel" onclick="if(confirm('cancel OK?')) { window.location.href='edit' }"/>
</body>